package com.gao.api.gate.quick.core.registry;

import java.util.Collection;

/**
 * <p></p>
 *
 * @author gaoshuangwen
 * @since 2022/01/12 13:06
 */
public abstract class ThreadSafeSimpleRegistry<Node> extends SimpleRegistry<Node> {

    public ThreadSafeSimpleRegistry(Collection<Node> registry) {
        super(registry);
    }

    @Override
    public synchronized boolean addNode(Node node) {
        return super.addNode(node);
    }

    @Override
    public synchronized boolean addAll(Collection<Node> nodes) {
        return super.addAll(nodes);
    }

    @Override
    public synchronized boolean remove(Node node) {
        return super.remove(node);
    }

    @Override
    public void clear() {
       super.clear();
    }

}
